export default {
  state: {
    userList: [1, 2, 3, 4, 5],
    authUserList: [1, 2, 4]
  },
  getters: {
    userList: state => {
      return state.userList
    },
    authUserList: state => {
      return state.authUserList
    }
  },
  mutations: {
    setUserList (state, value) {
      state.userList = value
    },
    setAuthUserList (state,value) {
      state.authUserList = value
    }
  },
  actions: {
    commitAll ({commit}, data) {
      commit('setUserList', data.userList)
      commit('setAuthUserList', data.authUserList)
    }
  }
}